package com.wm.wmcrm.sys.service;

import com.wm.wmcrm.common.util.PageUtils;
import com.wm.wmcrm.sys.entity.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wm.wmcrm.sys.model.SysUserQueryDTO;

import java.util.List;

/**
 * <p>
 * 系统用户 服务类
 * </p>
 *
 * @author wm
 * @since 2023-02-11
 */
public interface ISysUserService extends IService<SysUser> {
    SysUser queryByUserName(String username);

    PageUtils queryPage(SysUserQueryDTO userQueryDTO);

    boolean updateStatusById(int userId,int status);

    boolean deleteOne(String userId);

    boolean checkUsernameExist(String username);

    boolean saveUser(SysUser sysUser);

    boolean checkExist(String key, String value);

    boolean updateOne(SysUser sysUser);

    int deleteBatch(List<String> userIdList);
}
